package com.example.mylogin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.mylogin.handler.JtsGeometryTypeHandler;
import lombok.Data;
import org.locationtech.jts.geom.Polygon;
import java.time.LocalDateTime;

@Data
@TableName("spatial_areas")
public class SpatialArea {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    @TableField(typeHandler = JtsGeometryTypeHandler.class)
    private Polygon boundary;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
